@import "./m_mixins/m_reset";
@import "./m_mixins/m_fontsize";

#wrapper{
  padding-bottom: rem(80);
  transition-duration: .1s;
  filter: blur(5px);
  &.loaded{filter: blur(0);}
}

//header
#headerbar{
  line-height: rem(20);
  padding:rem(15) rem(20);
  .wrap{
    position:relative;
    .logo{width:rem(50);
      @extend .vertop;
      img{@extend .bkimg;}
    }
    .menu{
      float:right;
      width:rem(50);
      height:rem(50);
      position:relative;
      &::before, &::after{
        content:'';
        width:rem(46);
        position:absolute;
        left:rem(2);
        height:rem(6);
        background:#727f80;
        border-radius:rem(4);
        transition-duration:.3s;
      }
      &::before{
        top:rem(7);
      }
      &::after{
        top:rem(33);
      }
      &.on{
        &::before{top:rem(20);
          transform:rotateZ(45deg);
        }
        &::after{top:rem(20);
          transform:rotateZ(-45deg);
        }
        i{opacity:0;}
      }
      i{width:rem(46);
        display: block;
        height:rem(6);
        background:#727f80;
        border-radius:rem(4);
        margin:rem(20) auto 0;
        transition-duration:.1s;
      }
    }
  }
  .nav{display:none;
    margin-top:rem(10);
    border-top:1px solid #ccc;
    &.on{display:block;}
    li{border-bottom:1px solid #ccc;}
    a{display:block;
      color:#34495e;
      line-height:rem(54);
      text-decoration:none;
    }
  }

  .searchBox{
    padding:rem(10) 0;
    .searchField{
      width: 100%;
      height: rem(54);
      font-weight:300;
    }
  }
}

//footer
#footer{
  position:absolute;
  left:0;right:0;bottom:0;
  color: #fff;
  padding:rem(20);
  text-align:center;
  background:#727f80;
}

//404
#notfound{
  width: 200px;
  height:400px;
  margin:100px auto;
  text-align:center;
  .icon{font-size:200px;}
  .missing{color:#666;}
}

//desk
#desk{
  padding:rem(20);
  margin:0 auto;
  background:#fff;
}

.empty{text-align: center;
  padding-top:140px;
  img{width:270px;}
  a{text-decoration:underline;}
}

#articleList{
  li{position:relative;
    margin-bottom:rem(46);
    &:after{
      content:'';
      position:absolute;
      bottom:rem(-25);left:0;
      right:0;height:1px;
      background:#d6d6d6;
      box-shadow:0 1px 3px 0 rgba(0,0,0,.1);
      clear:both;
    }
    .title{
      font-weight:normal;
      position:relative;
      margin-bottom:rem(10);
    }
    .number{
      position:absolute;
      top:50%;left:rem(10);
      width:rem(6);
      height:rem(6);
      margin-top:rem(-3);
      border:1px solid #32b16c;
      border-radius:50%;
    }
    .link{
      display: block;
      max-height: rem(80);
      line-height:rem(40);
      padding-left: rem(40);
      padding-right:rem(40);
      overflow: hidden;
    }
    .icon{
      float:left;
      font-size:36px;
      margin-right:10px;
    }
    .icon-less, .icon-css{font-size:44px;}
    .icon-nodejs{
      font-size:94px;
      margin-top:-27px;
    }
    .about{color:#777;}
    .summary{
      text-align:justify;
      margin-top: rem(10);
      margin-bottom:rem(20);
      line-height:1.5;
      overflow:hidden;
      display:table;
      width:100%;
    }
    .summaryTxt{
      display: table-cell;
      vertical-align:middle;
      width:75%;
    }
    .img{display: table-cell;
      vertical-align:middle;
    }
    img{display:block;width:100%;}
    .read{
      width:rem(160);
      display:block;
      margin: 0 auto;
      text-align:center;
      line-height:rem(44);
      background:#32b16c;
      text-decoration:none;
      border:1px solid #2e6da4;
      border-radius:rem(4);
      color: #fff;
      &:hover{background:#25a56b;}
    }
  }
}

#post{
  position: relative;
  margin:0 10px;
  height: 650px;
  padding-top:30px;
  background:#fff;
  .title{
    text-align: center;
    span{width: 50%;
      display: inline-block;
    }
  }
  #textInput, #preview{
    box-sizing:border-box;
    position: absolute;
    top:60px;bottom:0;
    width: 50%;
    padding:10px;
    overflow-x:hidden;
    overflow-y:auto;
  }
  #textInput{
    left:0;
    border:1px solid #e7e7e7;
  }
  #preview{right:0;}
}

.articlepost{
  width: 800px;
  margin:20px auto;
  dl{width: 50%;
    @extend .vertop;
    line-height: 30px;
    margin-bottom:10px;
    dt,dd{@extend .vertop;}
    dt{width: 80px;}
    input[type='text']{
      width:270px;
      height: 32px;
      line-height: 20px;
      border: 1px solid #e7e7e7;
      border-radius:4px;
      padding:5px 10px;
    }
  }
  .cateslist{
    box-sizing:border-box;
    position: absolute;
    top:30px;left:0;
    width: 100%;
    max-height:200px;
    overflow-x:hidden;
    overflow-y:auto;
    background: #fff;
    border:1px solid #e7e7e7;
    display: none;
    &.on{@extend .show;}
    li{padding:0 10px;
      height: 24px;
      line-height:24px;
      overflow:hidden;
      text-overflow:ellipsis;
      white-space:nowrap;
      cursor: pointer;
      &:hover{@extend .common_green;
        background:#f7f7f7;
      }
    }
  }
  .textarea{
    width:100%;
    dt{line-height:18px;}
    dd{width:600px;}
    em{display:block;
      padding-left: 10px;
    }
    textarea{
      width:670px;
      height: 60px;
      display:block;
      background:#fff;
      border:1px solid #e7e7e7;
      border-radius:4px;
      line-height: 16px;
      padding:5px 10px;
      resize:vertical;
    }
  }
  label{
    display: block;
    width:150px;
    height: 20px;
    input{margin-top:4px;
      margin-right:5px;
    }
  }
}

#savePost{
  display:block;
  width:100px;
  height:32px;
  color: #fff;
  padding:0 10px;
  margin-top:10px;
  line-height:30px;
  text-align: center;
  border:1px solid #25a56b;
  border-radius:4px;
  background: #25a56b;
  text-decoration:none;
  &:hover{background:#42b983;}
}

/* 日历控件皮肤 */
.laydate_body {
  .laydate_nothis {color: #999;}
  .laydate_box {
    width: 240px;
    z-index: 10;
    background: #fff;
    color: #00625A;
    .laydate_void {color: #00E8D7;}
    a {text-decoration: none;
      color: #00625A;
    }
    cite, label {
      position: absolute;
      width: 0;
      height: 0;
      border-width: 5px;
      border-style: dashed;
      border-color: transparent;
      overflow: hidden;
      cursor: pointer;
    }
    .laydate_yms {display: none;}
    .laydate_show {display: block;}
    .laydate_click {
      background: #25a56b;
      color: #fff;
    }
  }
  .laydate_top {
    border-top: 1px solid #25a56b;
    background: #25a56b;
    position: relative;
    height: 36px;
    padding: 5px;
    z-index: 100;
    input{color: #fff;
      background: #25a56b;
    }
  }
  .laydate_ym {
    position: relative;
    float: left;
    height: 26px;
    cursor: pointer;
    border: 1px solid #25a56b;
    background: #25a56b;
    input {
      float: left;
      height: 24px;
      line-height: 24px;
      text-align: center;
      cursor: pointer;
    }
    .laydate_yms {
      position: absolute;
      left: -1px;
      top: 24px;
      height: 181px;
      box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
      border: 1px solid #25a56b;
      background: #25a56b;
      color: #fff;
    }
  }
  .laydate_y {
    width: 121px;
    margin-right: 4px;
    input {
      width: 64px;
      margin-right: 15px;
    }
    .laydate_yms {
      width: 122px;
      text-align: center;
      a {position: relative;
        display: block;
        height: 20px;
        border-bottom: 1px solid #25a56b;
        &:hover {background: #00C1B3;}
      }
      ul {
        height: 140px;
        li {
          float: left;
          width: 60px;
          height: 20px;
          line-height: 20px;
          text-overflow: ellipsis;
          overflow: hidden;
          white-space: nowrap;
        }
      }
    }
  }
  .laydate_m {
    width: 100px;
    .laydate_yms {
      width: 100px;
      padding: 0;
    }
    input {
      width: 42px;
      margin-right: 15px;
    }
    .laydate_yms span {
      display: block;
      float: left;
      width: 42px;
      margin: 5px 0 0 5px;
      line-height: 24px;
      text-align: center;
    }
  }
  .laydate_choose {
    display: block;
    float: left;
    position: relative;
    width: 20px;
    height: 24px;
    &:hover{background: #00C1B3;}
    cite {
      left: 50%;
      top: 50%;
    }
  }
  .laydate_m .laydate_yms span:hover, .laydate_time .laydate_hmsno span:hover, .laydate_y .laydate_yms ul li:hover, .laydate_table td:hover {
    background: #00C1B3;
    color: #fff;
  }
  .laydate_tab cite {
    left: 50%;
    top: 50%;
  }
  .laydate_chtop cite {
    margin: -7px 0 0 -5px;
    border-bottom-style: solid;
    border-bottom-color: #fff;
  }
  .laydate_chdown{border-top: 1px solid #25a56b;}
  .laydate_chdown cite, .laydate_ym label {
    top: 50%;
    margin: -2px 0 0 -5px;
    border-top-style: solid;
    border-top-color: #fff;
  }
  .laydate_chprev {
    border-left: none;
    border-right: 1px solid #25a56b;
  }
  .laydate_chprev cite {
    border-right-style: solid;
    border-right-color: #fff;
    margin: -5px 0 0 -7px;
  }
  .laydate_chnext cite {
    border-left-style: solid;
    border-left-color: #fff;
    margin: -5px 0 0 -2px;
  }
  .laydate_ym label {right: 22px;}
  .laydate_table {
    width: 240px;
    border-collapse: collapse;
    border-spacing: 0px;
    border: 1px solid #ccc;
    border-top: 0;
    border-bottom:0;
    td {
      width: 31px;
      height: 20px;
      line-height: 20px;
      text-align: center;
      cursor: pointer;
      font-size: 12px;
      background: #fff;
      color: #00625A;
    }
    thead {
      height: 22px;
      line-height: 22px;
      border-bottom: 1px solid #ccc;
      th {
        font-weight: 400;
        font-size: 12px;
        text-align: center;
      }
    }
  }
  .laydate_bottom {
    position: relative;
    height: 34px;
    line-height: 20px;
    padding: 5px;
    font-size: 12px;
    border:1px solid #ccc;
    #laydate_hms {
      float: left;
      background: #fff;
      border: 1px solid #ccc;
      position: relative;
      z-index: 1;
    }
  }
  .laydate_time {
    position: absolute;
    left: 5px;
    bottom: 26px;
    width: 130px;
    height: 125px;
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    .laydate_hmsno {
      padding: 5px 0 0 5px;
      span {
        float: left;
        width: 24px;
        height: 20px;
        line-height: 20px;
        text-align: center;
        cursor: pointer;
        *margin-bottom: -5px;
      }
    }
  }
  .laydate_msg {
    left: 50px;
    bottom: 67px;
    width: 141px;
    height: auto;
    overflow: hidden;
    p {padding: 5px 10px;}
  }
  .laydate_bottom {
    li {
      float: left;
      height: 20px;
      line-height: 20px;
      border-right: none;
      font-weight: 900;
    }
    .laydate_sj {
      width: 33px;
      text-align: center;
      font-weight: 400;
      border-right: 1px solid #ccc;
      background: #fff;
    }
    input {
      float: left;
      border: 0;
      width: 21px;
      height: 20px;
      line-height: 20px;
      text-align: center;
      cursor: pointer;
      font-size: 12px;
      font-weight: 400;
      background: #fff;
      color: #00625A;
    }
    .laydte_hsmtex {
      height: 20px;
      line-height: 20px;
      text-align: center;
      border-bottom: 1px solid #ccc;
      span {
        position: absolute;
        width: 20px;
        top: 0;
        right: 0px;
        cursor: pointer;
        &:hover {font-size: 14px;}
      }
    }
    .laydate_btn {
      border-right: 1px solid #ccc;
      position: absolute;
      right: 5px;
      top: 5px;
      a {float: left;
        padding: 0 6px;
        border: 1px solid #ccc;
        border-right: 0;
        background:#fff;
        &:hover {
          background:#F6F6F6;
          color: #00625A;
        }
      }
    }
    .laydate_v {
      font-family: Courier;
      position: absolute;
      left: 10px;
      top: 6px;
      color: #999;
    }
  }
}

#articleContent{
  padding:5px 20px 20px;
  margin:20px auto 0;
  background:#fff;
  line-height:1.6;
  .sibtitle{
    margin-bottom:rem(10);
  }
  a[target='_blank']::after{
    content: '';
    display: inline-block;
    width: rem(20);
    height:rem(20);
    margin-left:rem(15);
    background: currentColor url() no-repeat left bottom;
    background-size:contain;
  }
}

#editor{
  margin:40px auto;
  #editorArea{
    height:750px;
  }
}

#login{padding:120px 0 30px;
  .signTitle{
    text-align:center;
    line-height:60px;
  }
  .remark{
    max-width: 600px;
    margin: 100px auto 0;
    text-align:center;
    a{color: #42b983;}
  }
}

#signBox{
  width: 260px;		
  padding:20px;
  margin: 0 auto;
  background:#fafafa;
  border:1px solid #e7e7e7;
  border-radius:3px;
  .explain{color:#777;
    &.wrongfield{color:red;}
  }
  .inputBox{
    background:#fff;
    border:1px solid #e7e7e7;
    border-radius:3px;
    padding:7px;
    margin:7px 0;
  }
  input{
    width:100%;
    height: 20px;
    line-height: 20px;
    font-size:14px;
  }
  .signBtn{
    display:block;
    width: 100%;
    height:40px;
    line-height:40px;
    text-align:center;
    background:#42b983;
    text-decoration:none;
    border-radius:3px;
    margin-top:20px;
    font-size:18px;
    color:#fff;
    &:hover{background:#25a56b;}
  }
}




